package com.rbac.admin.entity.system;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 数据字典-字段级配置
 */
@Data
@TableName("sys_dict_field")
public class SysDictField {
    @TableId
    private Long id;

    @TableField("table_name")
    private String tableName;

    @TableField("column_name")
    private String columnName;

    @TableField("column_type")
    private String columnType;

    @TableField("data_type")
    private String dataType;

    @TableField("is_required")
    private Integer required;

    @TableField("is_unique")
    private Integer uniqueFlag;

    @TableField("is_visible")
    private Integer visible;

    /** 字典类型（可与通用字典表对接） */
    @TableField("dict_type")
    private String dictType;

    /** 前端显示标签 */
    @TableField("label")
    private String label;

    @TableField("sort")
    private Integer sort;

    @TableField("remark")
    private String remark;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}


